/**
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * connect state
 */
export default class StateModel{
  static readonly connectNot:number = 0;  // 0：未连接
  static readonly  connectIng:number = 1;  // 1:连接中
  static readonly  connectSuccess:number = 2; // 2:连接成功
  static readonly  connectFailed:number = 3; //3:连接失败

  public vpnId:number = -1;
  public state:number = StateModel.connectNot;

  constructor(vpnId:number = -1, state:number = StateModel.connectNot) {
    this.vpnId = vpnId;
    this.state = state;
  }
}








